﻿namespace WebPacker.Tool
{
	using System;

	internal class ToolException : Exception
	{
		public ToolException(string message)
			: base(message)
		{
		}

		public ToolException(string message, Exception innerException)
			: base(message, innerException)
		{
		}

		internal static Exception FileNotFound(string fileName)
		{
			return new ToolException(string.Format("File \"{0}\" isn't found.", fileName));
		}

		internal static Exception DifferentTypes()
		{
			return new ToolException(string.Format("Input files have diferent types."));
		}
	}
}
